import { createStore } from 'vuex'
import GlobalDataProps from './types'
import user from './user/index'
import waybill from './waybill'
import delivery from './delivery'
import cachedView from './cachedView'
import newsCenter from './newsCenter/index'
import system from './system/index'
import complaint from './complaint'
import introduce from './introduce'
import http from './http'

export default createStore<GlobalDataProps>({
  modules: {
    user,
    waybill,
    delivery,
    cachedView,
    newsCenter,
    system,
    http,
    complaint,
    introduce
  }
})
